def row0_0_f_backend ( slayout, selection ):

    slayout_local = slayout

    if ( selection == 0 ):

        print("row0_0_f_backend selection " + str(selection))
        obj = get_from_layout ( slayout_local, "button0_row" )
        obj["permission"] = "read_only"
        slayout_local = set_to_layout( slayout_local, obj )

        obj = get_from_layout ( slayout_local, "button1_row" )
        obj["permission"] = "read_write"
        slayout_local = set_to_layout( slayout_local, obj )

    else :

        print("row0_0_f_backend selection " + str(selection))
        obj = get_from_layout ( slayout_local, "button0_row" )
        obj["permission"] = "read_write"
        slayout_local = set_to_layout( slayout_local, obj )

        obj = get_from_layout ( slayout_local, "button1_row" )
        obj["permission"] = "read_only"
        slayout_local = set_to_layout( slayout_local, obj )

    return slayout_local

